package com.fansea.util;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class AiChatUtil {

    public static String AiRecovery(String text){
        String json = HttpRequestUtil.doGet("https://api.oioweb.cn/api/ai/chat?text=" + text);
        JSONObject jsonObject = JSON.parseObject(json);
        String result = jsonObject.getString("result");
        String displayText = JSON.parseObject(result).getString("displayText");
        return displayText;
    }
}
